class  MyT<T extends Comparable<T>>{
    Object[] obj1 = new Object[10];
    public T myMax(T[] t1){
        int n = t1.length;
        if(n == 10){
            throw new NormalException("buduij");
        }

        T mid = t1[0];
        for (int i = 1; i < n; i++) {
            if(t1[i].compareTo(mid) > 0){
                mid = t1[i];
            }
        }
        return mid;
    }
}
public class test1 {

    public static void main(String[] args) {
        MyT<Integer> m = new MyT<>();
        Integer[] i = new Integer[]{1,2,3,44,55,643,35,6,7,7};
        //throw new NormalException("buduij");
        Integer max = m.myMax(i);
        System.out.println(max);
    }
}
